package org.geeks.controller;

import java.util.List;

import org.geeks.domain.User;
import org.geeks.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户Controller
 * 
 * @author Geek4J
 *
 */
@RequestMapping("user")
@RestController
public class UserController {

	@Autowired
	private UserService userService;

	@GetMapping("findAll")
	public List<User> findAll() {
		return userService.findAll();
	}
}
